ngl: Fix a case of flipped shadow
authorMatthias Clasen <mclasen@redhat.com>
Mon, 12 Apr 2021 02:02:44 +0000 (22:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 12 Apr 2021 02:10:33 +0000 (22:10 -0400)
In the non-sliced case, we were rendering the shadow
upside down.

gsk/ngl/gsknglrenderjob.c

index 60f0cff82c24d45bc69caaa0d10cbea23ae811a4..4a3d1394b72a79276e4b1a1b8000e0ee88d1bdbe 100644 (file)
@@ -2433,7 +2433,7 @@ gsk_ngl_render_job_visit_blurred_outset_shadow_node (GskNglRenderJob     *job,
       float min_x = floorf (outline->bounds.origin.x - spread - half_blur_extra + dx);
       float min_y = floorf (outline->bounds.origin.y - spread - half_blur_extra + dy);
 
-      offscreen.was_offscreen = FALSE;
+      offscreen.was_offscreen = TRUE;
       offscreen.texture_id = blurred_texture_id;
       init_full_texture_region (&offscreen);